package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetVoteRecordListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2017-5-3   下午2:37:21
 */
@XmlRootElement
public class GetVoteRecordListResp extends SuperResp{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3808464899168770198L;
	private Integer recordSize;
	private List<VoteRecordInfo> voteRecordInfos;
	
	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	@Override
	public String toString() {
		return "GetVoteRecordListResp [recordSize=" + recordSize
				+ ", getResultCode()=" + getResultCode() + ", getResultDesc()="
				+ getResultDesc() + "]";
	}

	public List<VoteRecordInfo> getVoteRecordInfos() {
		return voteRecordInfos;
	}

	public void setVoteRecordInfos(List<VoteRecordInfo> voteRecordInfos) {
		this.voteRecordInfos = voteRecordInfos;
	}

	public static class VoteRecordInfo implements Serializable{

		/**
		 * 
		 */
		private static final long serialVersionUID = 9083097749251882249L;
		private String userID;
		private String playerCode;
		private String playerName;
		private Integer votes;
		//YYYY-mm-dd HH:mm:ss
		private String voteTime;
		public String getUserID() {
			return userID;
		}
		public void setUserID(String userID) {
			this.userID = userID;
		}
		public String getPlayerCode() {
			return playerCode;
		}
		public void setPlayerCode(String playerCode) {
			this.playerCode = playerCode;
		}
		public String getPlayerName() {
			return playerName;
		}
		public void setPlayerName(String playerName) {
			this.playerName = playerName;
		}
		public Integer getVotes() {
			return votes;
		}
		public void setVotes(Integer votes) {
			this.votes = votes;
		}
		public String getVoteTime() {
			return voteTime;
		}
		public void setVoteTime(String voteTime) {
			this.voteTime = voteTime;
		}
	}
}

